<template>
  <div>
    <input type="checkbox" :checked='item.completed' @click="todoCheck(item.id)"/>
  </div>
</template>

<script>
  export default {
    name: 'TodoCheck',
    props: ['item'],
    methods: {
      /**
       * 修改todo状态
       */
      todoCheck(id) {
        this.$emit('todoCheck', id)
      }
    },
  }
</script>

<style lang="scss" scoped>

</style>